﻿@{
    ViewBag.Title = "Caz";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var caz = ViewBag.Case as Case;
}
<script type="text/javascript">
    $(function () {
        $(window).bind("resize", function () {
            $('#casecontent').width($('#caselay').width() - $('#casemenu').width() - 10);
        }).trigger('resize');
    });
</script>
<div id="caselay">
@if (caz != null)
{ 
    <input type='hidden' id='CurrentCaseTypeId' value='@caz.TypeId' />
    <input type='hidden' id='CurrentCaseId' name='CaseId' value='@caz.Id' class="sparam" />
}
    <div class="fl" style="width: 200px;" id="casemenu">
        <ul>
            @if (caz != null)
            {
            <li><a href="@Url.Action("edit", "case", new { id = caz.Id })">Date generale</a></li>
            
            <li><a href="@Url.Action("index", "participant", new { CaseId = caz.Id })">Participanti la proces</a></li>
            <li><a href="@Url.Action("index", "file", new { CaseId = caz.Id })">Documente</a></li>
            <li><a href="@Url.Action("index", "registration", new { CaseId = caz.Id })">Inregistrarea</a></li>
            <li><a href="@Url.Action("index", "hearing", new { CaseId = caz.Id })">Sedinte</a></li>
            <li><a href="@Url.Action("index", "ruling", new { CaseId = caz.Id })">Incheieri</a></li>
            }
        </ul>
        <br />
    </div>
    <div class="fl" id="casecontent">                         
            @RenderBody()
    </div>
    <br class="cbt" />
</div>
